package com.spt.springbootzhsx.mapper;

import com.spt.springbootzhsx.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

@Mapper
public interface OrderMapper {
    ArrayList<Order> getAllOrder();
    ArrayList<Order> getAllOrderByUid(Integer uid);
    ArrayList<Order> getAllOrderByPid(Integer pid);
    ArrayList<Order> getAllOrderByOstate(String ostate);
    int addOrder(Order order);
    int deleteOrder(Integer oid);
    int updateOrderOstate(@Param("oid") Integer oid,@Param("ostate") String ostate);
}
